<?php
class Math {
	function __construct($num1, $num2) {
		return $this->add($num1, $num2);
	}
	function add($num1, $num2) {
		if ( ( strval($num1) !== strval(intval($num1)) ) || ( strval($num2) !== strval(intval($num2)) ) ) {
			throw new InvalidArgumentException('Input is not an integer');
		}
		return $num1 + $num2;
	}
}
